package edu.zju.gis.dldsj.exception;

import edu.zju.gis.dldsj.constant.CodeConstants;

/**
 * @author yanlo yanlong_lee@qq.com
 * @version 1.0 2018/08/01
 */
public class UnsupportedFormatException extends ApplicationException {
    private static final long serialVersionUID = 2134223938478410255L;

    protected int code = CodeConstants.SYSTEM_ERROR;

    public static final String MESSAGE = "应用异常";

    public UnsupportedFormatException(int i) {
        code = i;
    }

    public UnsupportedFormatException() {
        super(MESSAGE);
    }

    public UnsupportedFormatException(String message) {
        super(message);
    }

    public UnsupportedFormatException(int code, String message) {
        super(message);
        this.code = code;
    }

    public UnsupportedFormatException(String message, Throwable cause) {
        super(message, cause);
    }

    public UnsupportedFormatException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public UnsupportedFormatException(Throwable cause) {
        super(cause);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
